import request from '@/utils/request'
// 地块分页查询
export const getLandInfoPageApi = (params) => request.get(`/land_info/page?baseId=${params.baseId}&current=${params.current}&pageSize=${params.pageSize}&landType=${params.landType}&plantingVariety=${params.plantingVariety}&state=${params.state}&landName=${params.landName}`)
// 删除地块
export const delLandInfoApi = id => request.delete(`/land_info/removeByIds?ids=${id}`)
// 地块详情查询
export const getLandDetailApi = (params) => request.get(`/land_info/list?landId=${params.landId}&baseId=${params.baseId}`)
// 土壤检测 /sampling_report/add
export const addRepaotApi = (params) => request.post('/sampling_report/add', params)
